﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IntraVision.Web;

namespace Model
{
    public partial class NotarialForm
    {
        public string FullName { get { return this.Name.AddLeadingZero(7); } }

        public enum NotarialFormStatusType : int
        {
            NotUsed = 1,
            Used,
            Dublicate,
            Defect,
            Bad,
            Lost,
            Missing
        }

        public bool IsNotUsed {get {return this.StatusId == (int)NotarialFormStatusType.NotUsed; }}

        public bool IsInvalid { get { return this.NotarialFormStatus.IsInvalid; } }

        public bool IsFinished { get { return this.StatusId == (int)NotarialFormStatusType.Used; } }
    }
}
